package com.levy.contronller.jvm.classLoader;

import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;

/**
 * Created by levy on 2019/6/20.
 */
public class MyTest27 {

    public static void main(String[] args) {
        try {
            ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
            String resourceName = "cn/hutool/aop/aspects/Aspect.class";
            Enumeration<URL> urls = classLoader.getResources(resourceName);
            while(urls.hasMoreElements()){
                System.out.println(urls.nextElement());
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
